main.py 437 B

12345678910111213141516
  1. from pip._internal.utils.typing import MYPY_CHECK_RUNNING
  2. if MYPY_CHECK_RUNNING:
  3. from typing import Optional, List
  4. def main(args=None):
  5. # type: (Optional[List[str]]) -> int
  6. """This is preserved for old console scripts that may still be referencing
  7. it.
  8. For additional details, see https://github.com/pypa/pip/issues/7498.
  9. """
  10. from pip._internal.utils.entrypoints import _wrapper
  11. return _wrapper(args)